import { createRouter, createWebHashHistory } from 'vue-router';
import Home from '@/layouts/index.vue';

const routes = [
  {
    path: '/',
    component: Home,
    redirect: 'overview',
    children: [{
      path: 'overview',
      component: () => import('@/views/overview/index.vue')
    },{
      path: 'partyBuilding',
      component: () => import('@/views/partyBuilding/index.vue')
    },{
      path: 'network',
      component: () => import('@/views/network/index.vue')
    },{
      path: 'retirement',
      component: () => import('@/views/retirement/index.vue')
    },{
      path: 'autonomy',
      component: () => import('@/views/autonomy/index.vue')
    }]
  },
];




// 创建router实例
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;







